package com.teampower.idea.util;

public class GlobalProperty {
	
	public static final String FILE_DIR_TMP = System.getProperty("file.separator") + "tmp" + System.getProperty("file.separator");//UNIX目录,tmp
	public static final String DATE_PATTERN="yyyy-MM-dd";
	
	//分页信息
	public static final int PAGE_SIZE = 20;//每页显示记录数
	public static final int PAGE_BEFORE_NUM = 9;//当前页之前显示多少分页记录
	public static final int PAGE_AFTER_NUM = 10; //当前页之后显示多少分页记录
	
	
	
	private static GlobalProperty instance;
	private GlobalProperty() {}
	public static GlobalProperty getInstance() {
		try {
			if (instance == null)
				instance = new GlobalProperty();
		} catch (Exception e) {
			System.out.println("GlobalProperty getInstance():" + e.getMessage());
		}
		return instance;
	}


}
